package com.crane.oss.school.bean.request.task;

import com.crane.common.core.dto.PageQuery;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * @Author: zx
 * @Date: 2023/01/23/19:43
 * @Description:
 */
@ApiModel(description = "开始跳绳任务")
@Getter
@Setter
@ToString
public class EndTaskRopeReq  {


    @ApiModelProperty(value = "任务id", name = "taskId")
    private Long taskId;

    @ApiModelProperty(value = "跳绳设备", name = "equipmentId")
    private Long equipmentId;

    @ApiModelProperty(value = "打卡日期", name = "ruleTime")
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date ruleTime;

    /**
     * 跳绳个数
     */
    private Integer quantity;

    /**
     * 频次
     */
    private Double frequency;
    /**
     * 千卡
     */
    private Double kcal;
    /**
     * 跳绳开始时间
     */
    private Date beginTime;

    /**
     * 跳绳结束时间
     */
    private Date endTime;

    /**
     * 跳绳时长 单位秒
     */
    private Integer duration;

    @ApiModelProperty(value = "跳绳模式 1:1分钟倒计时跳绳，2:200个倒计数跳绳，3:自由跳绳", name = "model")
    private Integer model;

    @ApiModelProperty(value = "学生id", name = "studentId",hidden = true)
    private Long studentId;

}
